﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreEx.Common.Ioc;
using CoreEx.Database.Client;
using LinFu.IoC.Configuration;
using LinFu.IoC.Interfaces;
using LinFu.IoC;
namespace CoreEx.Database.Client.Implementation
{
    [PostProcessor]
    public class ParameterCachePostProcessor :PostProcessorBase<IParameterCache>
    {
        public override void Process(IServiceRequestResult result)
        {
            ((IParameterCache) result.OriginalResult).ParameterExtractor =
                result.Container.GetService<IParameterExtractor>(result.ServiceName);
        }
    }
}
